/*
    SDL - Simple DirectMedia Layer
    Partial implementation of SDL library (originally written by
    Sam Lantinga <slouken@libsdl.org>) for the particular purpose to support
    Prequengine (http://code.google.com/p/prequengine/) on BlackBerry(tm)
    tablets and smartphones.

    Copyright (C) 2013  xlamsp

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

    xlamsp@gmail.com
*/

#ifndef SDL_MOUSE_H_
#define SDL_MOUSE_H_

#include "SDL_stdinc.h"


/**
 * Toggle whether or not the cursor is shown on the screen.
 * The cursor start off displayed, but can be turned off.
 * SDL_ShowCursor() returns 1 if the cursor was being displayed
 * before the call, or 0 if it was not.  You can query the current
 * state by passing a 'toggle' value of -1.
 */
#define SDL_ShowCursor(toggle)  /* Not applicable */

/*@{*/
/** Used as a mask when testing buttons in buttonstate
 *  Button 1:   Left mouse button
 *  Button 2:   Middle mouse button
 *  Button 3:   Right mouse button
 *  Button 4:   Mouse wheel up   (may also be a real button)
 *  Button 5:   Mouse wheel down (may also be a real button)
 */
#define SDL_BUTTON(X)           (1 << ((X)-1))
#define SDL_BUTTON_LEFT         1
#define SDL_BUTTON_MIDDLE       2
#define SDL_BUTTON_RIGHT        3
#define SDL_BUTTON_WHEELUP      4
#define SDL_BUTTON_WHEELDOWN    5
#define SDL_BUTTON_X1           6
#define SDL_BUTTON_X2           7
#define SDL_BUTTON_LMASK        SDL_BUTTON(SDL_BUTTON_LEFT)
#define SDL_BUTTON_MMASK        SDL_BUTTON(SDL_BUTTON_MIDDLE)
#define SDL_BUTTON_RMASK        SDL_BUTTON(SDL_BUTTON_RIGHT)
#define SDL_BUTTON_X1MASK       SDL_BUTTON(SDL_BUTTON_X1)
#define SDL_BUTTON_X2MASK       SDL_BUTTON(SDL_BUTTON_X2)
/*@}*/

#endif /* SDL_MOUSE_H_ */

